<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改劳务派遣')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<style>
    .jltable{
        margin: auto;
    }
    .jltable th,td{
        min-height: 40px;
        min-width: 50px;
        border: 1px solid #eee;
        padding: 10px;
    }
</style>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-lwpq-edit" th:object="${lwpqLwpq}">
            <input name="id" th:field="*{id}" type="hidden">
            <h4 class="form-header h4">派遣管理</h4>
            <table class="jltable">
                <tr>
                    <td><label class=" control-label">姓名</label></td>
                    <td><input th:field="*{name}" name="name" class="form-control" type="text"></td>
                    <td><label class=" control-label">身份证</label></td>
                    <td><input  th:field="*{sfzh}" name="sfzh" class="form-control" type="text"></td>
                </tr>
                <tr>
                    <td><label class=" control-label">派遣单位</label></td>
                    <td><input  th:field="*{pqdw}" name="pqdw" class="form-control" type="text"></td>
                    <td><label class=" control-label">薪资</label></td>
                    <td><input  th:field="*{xz}" name="xz" class="form-control" type="text"></td>
                </tr>
                <tr>
                    <td><label class=" control-label">部门</label></td>
                    <td><input  th:field="*{bm}" name="bm" class="form-control" type="text"></td>
                    <td><label class=" control-label">岗位</label></td>
                    <td><input  th:field="*{gw}" name="gw" class="form-control" type="text"></td>
                </tr>
                <tr>
                    <td><label class=" control-label">开始时间</label></td>
                    <td>
                        <div class="input-group date">
                            <input th:value="${#dates.format(lwpqLwpq.kssj, 'yyyy-MM-dd')}" name="kssj" class="form-control" placeholder="yyyy-MM-dd" type="text">
                            <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                        </div>
                    </td>
                    <td> <label class=" control-label">结束时间</label></td>
                    <td>
                        <div class="input-group date">
                            <input  th:value="${#dates.format(lwpqLwpq.jssj, 'yyyy-MM-dd')}" name="jssj" class="form-control" placeholder="yyyy-MM-dd" type="text">
                            <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td><label class=" control-label">工作内容</label></td>
                    <td colspan="3"><textarea th:field="*{gznr}"  name="gznr" class="form-control"></textarea></td>
                </tr>
                <tr>
                    <td> <label class=" control-label">备注</label></td>
                    <td colspan="3"> <textarea th:field="*{bz}"  name="bz" class="form-control"></textarea></td>
                </tr>
            </table>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script th:inline="javascript">
        var prefix = ctx + "lwpq/lwpq";
        $("#form-lwpq-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-lwpq-edit').serialize());
            }
        }

        $("input[name='kssj']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='jssj']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });
    </script>
</body>
</html>